﻿using PcapDotNet.Core;
using PcapDotNet.Core.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ServerSide
{
    class Program
    {
        static void Main(string[] args)
        {
            string macAddress = "";
            StartListening(macAddress);
        }

        static void StartListening(string macAddress)
        {
            // x.Addresses.Any(y => y.Address is IpV4SocketAddress address)
            PacketDevice packetDevice = LivePacketDevice.AllLocalMachine.FirstOrDefault(x => string.Equals(x.GetMacAddress().ToString(), macAddress, StringComparison.OrdinalIgnoreCase));
        }
    }
}
